import axios from 'axios';



const service = axios.create({
	timeout: 50000
})




service.interceptors.request.use(
	(config) => {
		if(config.headers){
			config.headers['token'] = "sfdswfcsfsfdf";
		}
		

		return config;
	},
	error => {
		return Promise.reject(error)
	}
)

service.interceptors.response.use(
	respons => {
		const res = respons.data;

		return res;
	},
	error => {

	

		Promise.reject(error)
	}
)

export default service;
